package top.revery.api.api.user;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import top.revery.api.config.UserPageData;
import top.revery.api.entity.user.BaseUserPageWorks;
import top.revery.api.entity.user.BaseUserWorks;

import java.util.Map;

/**
 * @author denghao
 * @title
 * @package
 * @date 2019/12/23 10:20
 */
@RequestMapping("/api_userPageWorks")
public interface IUserPageWorksApi {

    //保存网红
    @PostMapping("/save")
    BaseUserPageWorks save(@RequestBody BaseUserPageWorks baseUserPageWorks);

    //分页多条件查询所有
    @PostMapping("/getList")
    UserPageData getList(@RequestParam(value = "pageNum") int pageNum, @RequestParam(value = "pageSize")int pageSize,
                         @RequestBody Map map);

    @PostMapping("/delete")
    void delete(@RequestParam(value = "id") Long id);

    //增加关注量
    @PostMapping("/add")
    void add(@RequestParam(value = "id") Long id);
}
